const TokenKey = 'App-Token'
const ClientIdKey = 'App-ClientId'
const UserInfoKey = 'App-UserInfo'

export function getToken() {
	return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
	return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
	return uni.removeStorageSync(TokenKey)
}
export function getClientId() {
	return uni.getStorageSync(ClientIdKey)
}

export function setClientId(token) {
	return uni.setStorageSync(ClientIdKey, token)
}

export function removeClientId() {
	return uni.removeStorageSync(ClientIdKey)
}

export function getUserInfo() {
	return uni.getStorageSync(UserInfoKey)
}

export function setUserInfo(userInfo) {
	return uni.setStorageSync(UserInfoKey, userInfo)
}

export function removeUserInfo() {
	return uni.removeStorageSync(UserInfoKey)
}